package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
* @author retoc
* @description 针对表【tb_role(角色表)】的数据库操作Mapper
* @createDate 2022-05-01 20:00:13
* @Entity com.retoc.oawx.domain.Role
*/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    public List<Role> searchAllRole();
    public long searchRoleUsersCount(int id);
    public int deleteRoleById(int id);
    public ArrayList<HashMap> searchRoleOwnPermission(int id);

    public ArrayList<HashMap> searchAllPermission();
    public int insertRole(Role role);
    public int updateRolePermissions(Role role);
}




